package grape.file.rest.cloudstorage.form;

import grape.common.rest.form.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

/**
 * Created by yangwei
 * Created at 2020/3/11 18:01
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel(value="PDF文件上传表单对象")
public class UploadPdfForm extends BaseForm {

    @NotNull(message = "请选择要上传的PDF文件")
    @ApiModelProperty(value = "上传的PDF文件",required = true)
    private MultipartFile file;

    @ApiModelProperty(value = "上传的路径，如：header/pdf")
    private String path;

    @ApiModelProperty(value = "提取pdf的图片")
    private boolean extractImage;
}
